<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>模版语法</title>
    <script src="../js/vue.js" type="text/javascript"></script>
</head>

<body>
    <div id="root">
        <h1>插值语法</h1>
        <h3>你好， {{name}}</h3>
        <hr>
        <h1>指令语法</h1>
        <a v-bind:href=url v-bind:b="quick">点我去百度</a>
        <a :href=url :b="quick">点我去百度2</a>
    </div>
    <script type="text/javascript">
        Vue.config.productionTip = false
        new Vue({
            el: '#root',
            data: {
                name: 'junjie',
                url: 'https://www.baidu.com',
                quick: 'text'
            }
        });
    </script>

</body>

</html>